<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="no" name="apple-touch-fullscreen" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <link rel="shortcut icon" href="http://www.zsgjs.com/index/public/zj_icon.ico?201504161533" type="image/x-icon">
    <title>demo</title>
    <meta name="description" content="">
    <meta name="keywords" content="">
    <script src='./js/jquery-1.11.1.min.js'></script>
    <script src='./js/flexible.js'></script><!-- 这个库是为适应移动端 -->

    <script src='./js/fastclick.js'></script>
    <script src='./js/index.js'></script>
    <link href='./css/common.css' rel="stylesheet">
    <link href='./css/index.css' rel="stylesheet">
</head>
<body>
	<div id="testimg" class="testimg">
		<img src="./image/index.jpg" alt="">
	</div>


	<button  type="button" onclick="myfun1()">点击这里切换</button>

	<div class="forchange" data-action="tochangeback"><span>点击这里切换回来</span></div>
</body>
	<script type="text/javascript">

		function myfun1() {
			console.log("11");
			var testdiv = document.getElementById("testimg");
			testdiv.innerHTML='<img src="./image/index2.jpg" alt="">';
		}
	</script>
</html>